package com.css.dzj.dzjap.modules.apunit.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.hibernate.annotations.SQLDelete;
import org.hibernate.annotations.Where;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;
import java.util.Objects;

/**
 * 安评单位实体类
 * @author liyunyue
 */
@Entity
@SQLDelete(sql = "update AP_UNIT set DEL_FLAG = 1 where id = ?")
@Table(name = "AP_UNIT", schema = "DZJAP", catalog = "")
public class ApUnitEntity {
    private String id;
    /**
     * 单位名称
     */
    private String unitName;
    /**
     * 统一社会信用代码
     */
    private String uniscid;
    /**
     * 注册地址
     */
    private String registAddr;
    /**
     * 注册地址邮编
     */
    private String registAddrCode;
    /**
     * 办公地址邮编
     */
    private String bgAddrCode;
    /**
     * 创建时间
     */
    private Date establishTime;
    /**
     * 联系人
     */
    private String linkMan;
    /**
     * 联系人电话
     */
    private String linkTel;
    /**
     * 联系人邮箱
     */
    private String linkEmail;
    /**
     * 审批人
     */
    private String spPerson;
    /**
     * 审批机构
     */
    private String spOrg;
    /**
     * 审批结果
     */
    private String spResult;
    /**
     * 审批意见
     */
    private String spReview;
    /**
     * 企业单位类型
     */
    private String qyUnitType;
    /**
     * 事业单位类型
     */
    private String syUnitType;
    /**
     * 审批时间
     */
    private Date spTime;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 创建人
     */
    private String createPerson;
    /**
     * 更新时间
     */
    private Date updateTime;
    /**
     * 更新人
     */
    private String updatePerson;
    /**
     * 审批状态  1:未审批 2：审批不通过3：审批通过
     */
    private String spStatus;
    /**
     * 删除标记
     */
    private String delFlag;
    /**
     * 办公地址
     */
    private String bgAddr;
    /**
     * 法定代表人电话
     */
    private String legalManTel;
    /**
     * 联系人办公室电话
     */
    private String linkOffice;
    /**
     * 联系人传真
     */
    private String linkFax;
    /**
     * 上级主管单位
     */
    private String upMainUnit;
    /**
     * 单位注册时间
     */
    private Date unitRegistTime;
    /**
     * 企业法人营业执照注册号或事业单位法人证书登记号
     */
    private String registCode;
    /**
     * 注册资金
     */
    private String registMoney;
    /**
     * 60周岁以下高级职称人数
     */
    private Integer highDownsixty;
    /**
     * 60周岁以上高级职称人数
     */
    private Integer highUpsixty;
    /**
     * 高级职称总人数
     */
    private Integer highSum;
    /**
     * 60周岁以下中级职称人数
     */
    private Integer midDownsixty;
    /**
     * 60周岁以上中级职称人数
     */
    private Integer midUpsixty;
    /**
     * 中级职称人数
     */
    private Integer midSum;
    /**
     * 60周岁以下初级职称人数
     */
    private Integer priDomnsixty;
    /**
     * 60周岁以上初级职称人数
     */
    private Integer priUpsixty;
    /**
     * 初级职称总数
     */
    private Integer priSum;
    /**
     * 60周岁以下总人数
     */
    private Integer sumDownsixty;
    /**
     * 60周岁以上总人数
     */
    private Integer sumUpsixty;
    /**
     * 总人数
     */
    private Integer sum;
    /**
     * 地震学高级人称名称
     */
    private String dzxHigh;
    /**
     * 地震地质学高级职称姓名
     */
    private String dzdzxHigh;
    /**
     * 地震工程学高级职称姓名
     */
    private String dzgcxHigh;
    /**
     * 开展地震安全性评价工作业绩情况
     */
    private String apYjqk;
    /**
     * 具有承担地震安全性评价工作技术
     * 能力情况
     */
    private String apJsnlqk;
    /**
     * 质量管理体系情况
     */
    private String zlglTxqk;
    /**
     * 密码
     */
    private String password;
    /**
     * 法人
     */
    private String legalMan;

    /**
     * 安评等级
     */
    private  String apLevel;

    /**
     * 上报状态  0：未上报 1：已上报
     */
    private String sbStatus;


    /**
     * 登录名
     */
    private String userName;

    private String checkResult;

    private String checkObjectId;
    private String pripId;
    private String regNo;
    private String entType;
    private String entTypeCn;
    private String industryCategory;
    private String organizationClass;
    private String nationalEconomy;
    private String dom;
    private String opLoc;
    private Date opFrom;
    private Date opTo;
    private String opScope;
    private String opScoType;
    private String opScoTypeCn;
    private String regOrg;
    private String regOrgCn;
    private String regState;
    private String regStateCn;
    private Date apprDate;
    private Date revDate;
    private String sugRevReason;
    private String linkmanCerNo;
    private BigDecimal operatingLongitude;
    private BigDecimal operatingLatitude;


    @Id
//    @GeneratedValue(generator = "idGenerator")
//    @GenericGenerator(name = "idGenerator", strategy = "com.css.dzj.dzjap.common.util.SnowflakeId")
    @Column(name = "ID")
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "SB_STATUS")
    public String getSbStatus() {
        return sbStatus;
    }

    public void setSbStatus(String sbStatus) {
        this.sbStatus = sbStatus;
    }

    @Basic
    @Column(name = "UNIT_NAME")
    public String getUnitName() {
        return unitName;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    @Basic
    @Column(name = "UNISCID")
    public String getUniscid() {
        return uniscid;
    }

    public void setUniscid(String uniscid) {
        this.uniscid = uniscid;
    }

    @Basic
    @Column(name = "REGIST_ADDR")
    public String getRegistAddr() {
        return registAddr;
    }

    public void setRegistAddr(String registAddr) {
        this.registAddr = registAddr;
    }

    @Basic
    @Column(name = "REGIST_ADDR_CODE")
    public String getRegistAddrCode() {
        return registAddrCode;
    }

    public void setRegistAddrCode(String registAddrCode) {
        this.registAddrCode = registAddrCode;
    }

    @Basic
    @Column(name = "BG_ADDR_CODE")
    public String getBgAddrCode() {
        return bgAddrCode;
    }

    public void setBgAddrCode(String bgAddrCode) {
        this.bgAddrCode = bgAddrCode;
    }

    @JsonFormat(shape= JsonFormat.Shape.STRING,pattern="yyyy-MM-dd",timezone="GMT+8")
    @Basic
    @Column(name = "ESTABLISH_TIME")
    public Date getEstablishTime() {
        return establishTime;
    }

    public void setEstablishTime(Date establishTime) {
        this.establishTime = establishTime;
    }

    @Basic
    @Column(name = "LINK_MAN")
    public String getLinkMan() {
        return linkMan;
    }

    public void setLinkMan(String linkMan) {
        this.linkMan = linkMan;
    }

    @Basic
    @Column(name = "LINK_TEL")
    public String getLinkTel() {
        return linkTel;
    }

    public void setLinkTel(String linkTel) {
        this.linkTel = linkTel;
    }

    @Basic
    @Column(name = "LINK_EMAIL")
    public String getLinkEmail() {
        return linkEmail;
    }

    public void setLinkEmail(String linkEmail) {
        this.linkEmail = linkEmail;
    }

    @Basic
    @Column(name = "SP_PERSON")
    public String getSpPerson() {
        return spPerson;
    }

    public void setSpPerson(String spPerson) {
        this.spPerson = spPerson;
    }

    @Basic
    @Column(name = "SP_ORG")
    public String getSpOrg() {
        return spOrg;
    }

    public void setSpOrg(String spOrg) {
        this.spOrg = spOrg;
    }

    @Basic
    @Column(name = "SP_RESULT")
    public String getSpResult() {
        return spResult;
    }

    public void setSpResult(String spResult) {
        this.spResult = spResult;
    }

    @Basic
    @Column(name = "SP_REVIEW")
    public String getSpReview() {
        return spReview;
    }

    public void setSpReview(String spReview) {
        this.spReview = spReview;
    }

    @Basic
    @Column(name = "SY_UNIT_TYPE")
    public String getSyUnitType() {
        return syUnitType;
    }

    public void setSyUnitType(String syUnitType) {
        this.syUnitType = syUnitType;
    }


    @Basic
    @Column(name = "QY_UNIT_TYPE")
    public String getQyUnitType() {return qyUnitType;}

    public void setQyUnitType(String qyUnitType) {
        this.qyUnitType = qyUnitType;
    }

    @Basic
    @Column(name = "LEGAL_MAN")
    public String getLegalMan() { return legalMan; }

    public void setLegalMan(String legalMan) {
        this.legalMan = legalMan;
    }

    @JsonFormat(shape= JsonFormat.Shape.STRING,pattern="yyyy-MM-dd",timezone="GMT+8")
    @Basic
    @Column(name = "SP_TIME")
    public Date getSpTime() {
        return spTime;
    }

    public void setSpTime(Date spTime) {
        this.spTime = spTime;
    }

    @JsonFormat(shape= JsonFormat.Shape.STRING,pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @Basic
    @Column(name = "CREATE_TIME")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Basic
    @Column(name = "CREATE_PERSON")
    public String getCreatePerson() {
        return createPerson;
    }

    public void setCreatePerson(String createPerson) {
        this.createPerson = createPerson;
    }

    @JsonFormat(shape= JsonFormat.Shape.STRING,pattern="yyyy-MM-dd",timezone="GMT+8")
    @Basic
    @Column(name = "UPDATE_TIME")
    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Basic
    @Column(name = "UPDATE_PERSON")
    public String getUpdatePerson() {
        return updatePerson;
    }

    public void setUpdatePerson(String updatePerson) {
        this.updatePerson = updatePerson;
    }

    @Basic
    @Column(name = "SP_STATUS")
    public String getSpStatus() {
        return spStatus;
    }

    public void setSpStatus(String spStatus) {
        this.spStatus = spStatus;
    }

    @Basic
    @Column(name = "DEL_FLAG")
    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    @Basic
    @Column(name = "BG_ADDR")
    public String getBgAddr() {
        return bgAddr;
    }

    public void setBgAddr(String bgAddr) {
        this.bgAddr = bgAddr;
    }

    @Basic
    @Column(name = "LEGAL_MAN_TEL")
    public String getLegalManTel() {
        return legalManTel;
    }

    public void setLegalManTel(String legalManTel) {
        this.legalManTel = legalManTel;
    }

    @Basic
    @Column(name = "LINK_OFFICE")
    public String getLinkOffice() {
        return linkOffice;
    }

    public void setLinkOffice(String linkOffice) {
        this.linkOffice = linkOffice;
    }

    @Basic
    @Column(name = "LINK_FAX")
    public String getLinkFax() {
        return linkFax;
    }

    public void setLinkFax(String linkFax) {
        this.linkFax = linkFax;
    }

    @Basic
    @Column(name = "UP_MAIN_UNIT")
    public String getUpMainUnit() {
        return upMainUnit;
    }

    public void setUpMainUnit(String upMainUnit) {
        this.upMainUnit = upMainUnit;
    }

    @JsonFormat(shape= JsonFormat.Shape.STRING,pattern="yyyy-MM-dd",timezone="GMT+8")
    @Basic
    @Column(name = "UNIT_REGIST_TIME")
    public Date getUnitRegistTime() {
        return unitRegistTime;
    }

    public void setUnitRegistTime(Date unitRegistTime) {
        this.unitRegistTime = unitRegistTime;
    }

    @Basic
    @Column(name = "REGIST_CODE")
    public String getRegistCode() {
        return registCode;
    }

    public void setRegistCode(String registCode) {
        this.registCode = registCode;
    }

    @Basic
    @Column(name = "REGIST_MONEY")
    public String getRegistMoney() {
        return registMoney;
    }

    public void setRegistMoney(String registMoney) {
        this.registMoney = registMoney;
    }

    @Basic
    @Column(name = "HIGH_DOWNSIXTY")
    public Integer getHighDownsixty() {
        return highDownsixty;
    }

    public void setHighDownsixty(Integer highDownsixty) {
        this.highDownsixty = highDownsixty;
    }

    @Basic
    @Column(name = "HIGH_UPSIXTY")
    public Integer getHighUpsixty() {
        return highUpsixty;
    }

    public void setHighUpsixty(Integer highUpsixty) {
        this.highUpsixty = highUpsixty;
    }

    @Basic
    @Column(name = "HIGH_SUM")
    public Integer getHighSum() {
        return highSum;
    }

    public void setHighSum(Integer highSum) {
        this.highSum = highSum;
    }

    @Basic
    @Column(name = "MID_DOWNSIXTY")
    public Integer getMidDownsixty() {
        return midDownsixty;
    }

    public void setMidDownsixty(Integer midDownsixty) {
        this.midDownsixty = midDownsixty;
    }

    @Basic
    @Column(name = "MID_UPSIXTY")
    public Integer getMidUpsixty() {
        return midUpsixty;
    }

    public void setMidUpsixty(Integer midUpsixty) {
        this.midUpsixty = midUpsixty;
    }

    @Basic
    @Column(name = "MID_SUM")
    public Integer getMidSum() {
        return midSum;
    }

    public void setMidSum(Integer midSum) {
        this.midSum = midSum;
    }

    @Basic
    @Column(name = "PRI_DOMNSIXTY")
    public Integer getPriDomnsixty() {
        return priDomnsixty;
    }

    public void setPriDomnsixty(Integer priDomnsixty) {
        this.priDomnsixty = priDomnsixty;
    }

    @Basic
    @Column(name = "PRI_UPSIXTY")
    public Integer getPriUpsixty() {
        return priUpsixty;
    }

    public void setPriUpsixty(Integer priUpsixty) {
        this.priUpsixty = priUpsixty;
    }


    @Basic
    @Column(name = "PRI_SUM")
    public Integer getPriSum() {return priSum;}

    public void setPriSum(Integer priSum) {
        this.priSum = priSum;
    }

    @Basic
    @Column(name = "SUM_DOWNSIXTY")
    public Integer getSumDownsixty() {
        return sumDownsixty;
    }

    public void setSumDownsixty(Integer sumDownsixty) {
        this.sumDownsixty = sumDownsixty;
    }

    @Basic
    @Column(name = "SUM_UPSIXTY")
    public Integer getSumUpsixty() {
        return sumUpsixty;
    }

    public void setSumUpsixty(Integer sumUpsixty) {
        this.sumUpsixty = sumUpsixty;
    }

    @Basic
    @Column(name = "SUM")
    public Integer getSum() {
        return sum;
    }

    public void setSum(Integer sum) {
        this.sum = sum;
    }

    @Basic
    @Column(name = "DZX_HIGH")
    public String getDzxHigh() {
        return dzxHigh;
    }

    public void setDzxHigh(String dzxHigh) {
        this.dzxHigh = dzxHigh;
    }

    @Basic
    @Column(name = "DZDZX_HIGH")
    public String getDzdzxHigh() {
        return dzdzxHigh;
    }

    public void setDzdzxHigh(String dzdzxHigh) {
        this.dzdzxHigh = dzdzxHigh;
    }

    @Basic
    @Column(name = "DZGCX_HIGH")
    public String getDzgcxHigh() {
        return dzgcxHigh;
    }

    public void setDzgcxHigh(String dzgcxHigh) {
        this.dzgcxHigh = dzgcxHigh;
    }

    @Basic
    @Column(name = "AP_YJQK")
    public String getApYjqk() {
        return apYjqk;
    }

    public void setApYjqk(String apYjqk) {
        this.apYjqk = apYjqk;
    }

    @Basic
    @Column(name = "AP_JSNLQK")
    public String getApJsnlqk() {
        return apJsnlqk;
    }

    public void setApJsnlqk(String apJsnlqk) {
        this.apJsnlqk = apJsnlqk;
    }

    @Basic
    @Column(name = "ZLGL_TXQK")
    public String getZlglTxqk() {
        return zlglTxqk;
    }

    public void setZlglTxqk(String zlglTxqk) {
        this.zlglTxqk = zlglTxqk;
    }

    @Basic
    @Column(name = "PASSWORD")
    public String getPassword() {return password;}

    public void setPassword(String password) {this.password = password; }

    @Basic
    @Column(name = "AP_LEVEL")
    public String getApLevel() {return apLevel;}

    public void setApLevel(String apLevel) {this.apLevel = apLevel; }

    @Basic
    @Column(name = "USER_NAME")
    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }
    @Basic
    @Column(name = "CHECK_RESULT")
    public String getCheckResult() {
        return checkResult;
    }

    public void setCheckResult(String checkResult) {
        this.checkResult = checkResult;
    }
    @Basic
    @Column(name = "Check_Object_Id")
    public String getCheckObjectId() {
        return checkObjectId;
    }

    public void setCheckObjectId(String checkObjectId) {
        this.checkObjectId = checkObjectId;
    }
    @Basic
    @Column(name = "PRIPID")
    public String getPripId() {
        return pripId;
    }

    public void setPripId(String pripId) {
        this.pripId = pripId;
    }
    @Basic
    @Column(name = "Reg_NO")
    public String getRegNo() {
        return regNo;
    }

    public void setRegNo(String regNo) {
        this.regNo = regNo;
    }
    @Basic
    @Column(name = "Ent_Type")
    public String getEntType() {
        return entType;
    }

    public void setEntType(String entType) {
        this.entType = entType;
    }
    @Basic
    @Column(name = "Ent_Type_CN")
    public String getEntTypeCn() {
        return entTypeCn;
    }

    public void setEntTypeCn(String entTypeCn) {
        this.entTypeCn = entTypeCn;
    }
    @Basic
    @Column(name = "Industry_Category")
    public String getIndustryCategory() {
        return industryCategory;
    }

    public void setIndustryCategory(String industryCategory) {
        this.industryCategory = industryCategory;
    }
    @Basic
    @Column(name = "Organization_Class")
    public String getOrganizationClass() {
        return organizationClass;
    }

    public void setOrganizationClass(String organizationClass) {
        this.organizationClass = organizationClass;
    }
    @Basic
    @Column(name = "National_Economy")
    public String getNationalEconomy() {
        return nationalEconomy;
    }

    public void setNationalEconomy(String nationalEconomy) {
        this.nationalEconomy = nationalEconomy;
    }
    @Basic
    @Column(name = "Dom")
    public String getDom() {
        return dom;
    }

    public void setDom(String dom) {
        this.dom = dom;
    }
    @Basic
    @Column(name = "Op_Loc")
    public String getOpLoc() {
        return opLoc;
    }

    public void setOpLoc(String opLoc) {
        this.opLoc = opLoc;
    }
    @Basic
    @Column(name = "Op_From")
    public Date getOpFrom() {
        return opFrom;
    }

    public void setOpFrom(Date opFrom) {
        this.opFrom = opFrom;
    }
    @Basic
    @Column(name = "Op_To")
    public Date getOpTo() {
        return opTo;
    }

    public void setOpTo(Date opTo) {
        this.opTo = opTo;
    }
    @Basic
    @Column(name = "Op_Scope")
    public String getOpScope() {
        return opScope;
    }

    public void setOpScope(String opScope) {
        this.opScope = opScope;
    }
    @Basic
    @Column(name = "Op_Sco_Type")
    public String getOpScoType() {
        return opScoType;
    }

    public void setOpScoType(String opScoType) {
        this.opScoType = opScoType;
    }
    @Basic
    @Column(name = "Op_Sco_Type_CN")
    public String getOpScoTypeCn() {
        return opScoTypeCn;
    }

    public void setOpScoTypeCn(String opScoTypeCn) {
        this.opScoTypeCn = opScoTypeCn;
    }
    @Basic
    @Column(name = "Reg_Org")
    public String getRegOrg() {
        return regOrg;
    }

    public void setRegOrg(String regOrg) {
        this.regOrg = regOrg;
    }
    @Basic
    @Column(name = "Reg_Org_CN")
    public String getRegOrgCn() {
        return regOrgCn;
    }

    public void setRegOrgCn(String regOrgCn) {
        this.regOrgCn = regOrgCn;
    }
    @Basic
    @Column(name = "Reg_State")
    public String getRegState() {
        return regState;
    }

    public void setRegState(String regState) {
        this.regState = regState;
    }
    @Basic
    @Column(name = "Reg_State_CN")
    public String getRegStateCn() {
        return regStateCn;
    }

    public void setRegStateCn(String regStateCn) {
        this.regStateCn = regStateCn;
    }
    @Basic
    @Column(name = "Appr_Date")
    public Date getApprDate() {
        return apprDate;
    }

    public void setApprDate(Date apprDate) {
        this.apprDate = apprDate;
    }
    @Basic
    @Column(name = "Rev_Date")
    public Date getRevDate() {
        return revDate;
    }

    public void setRevDate(Date revDate) {
        this.revDate = revDate;
    }
    @Basic
    @Column(name = "Sug_Rev_Reason")
    public String getSugRevReason() {
        return sugRevReason;
    }

    public void setSugRevReason(String sugRevReason) {
        this.sugRevReason = sugRevReason;
    }
    @Basic
    @Column(name = "Linkman_Cer_NO")
    public String getLinkmanCerNo() {
        return linkmanCerNo;
    }

    public void setLinkmanCerNo(String linkmanCerNo) {
        this.linkmanCerNo = linkmanCerNo;
    }

    @Basic
    @Column(name = "Operating_Longitude")
    public BigDecimal getOperatingLongitude() {
        return operatingLongitude;
    }

    public void setOperatingLongitude(BigDecimal operatingLongitude) {
        this.operatingLongitude = operatingLongitude;
    }

    @Basic
    @Column(name = "Operating_Latitude")
    public BigDecimal getOperatingLatitude() {
        return operatingLatitude;
    }

    public void setOperatingLatitude(BigDecimal operatingLatitude) {
        this.operatingLatitude = operatingLatitude;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {return true;}
        if (o == null || getClass() != o.getClass()) {return false;}
        ApUnitEntity that = (ApUnitEntity) o;
        return Objects.equals(id, that.id) &&
                Objects.equals(unitName, that.unitName) &&
                Objects.equals(uniscid, that.uniscid) &&
                Objects.equals(registAddr, that.registAddr) &&
                Objects.equals(registAddrCode, that.registAddrCode) &&
                Objects.equals(bgAddrCode, that.bgAddrCode) &&
                Objects.equals(establishTime, that.establishTime) &&
                Objects.equals(linkMan, that.linkMan) &&
                Objects.equals(linkTel, that.linkTel) &&
                Objects.equals(linkEmail, that.linkEmail) &&
                Objects.equals(spPerson, that.spPerson) &&
                Objects.equals(spOrg, that.spOrg) &&
                Objects.equals(spResult, that.spResult) &&
                Objects.equals(spReview, that.spReview) &&
                Objects.equals(qyUnitType, that.qyUnitType) &&
                Objects.equals(syUnitType, that.syUnitType) &&
                Objects.equals(legalMan, that.legalMan) &&
                Objects.equals(spTime, that.spTime) &&
                Objects.equals(createTime, that.createTime) &&
                Objects.equals(createPerson, that.createPerson) &&
                Objects.equals(updateTime, that.updateTime) &&
                Objects.equals(updatePerson, that.updatePerson) &&
                Objects.equals(spStatus, that.spStatus) &&
                Objects.equals(delFlag, that.delFlag) &&
                Objects.equals(bgAddr, that.bgAddr) &&
                Objects.equals(legalManTel, that.legalManTel) &&
                Objects.equals(linkOffice, that.linkOffice) &&
                Objects.equals(linkFax, that.linkFax) &&
                Objects.equals(upMainUnit, that.upMainUnit) &&
                Objects.equals(unitRegistTime, that.unitRegistTime) &&
                Objects.equals(registCode, that.registCode) &&
                Objects.equals(registMoney, that.registMoney) &&
                Objects.equals(highDownsixty, that.highDownsixty) &&
                Objects.equals(highUpsixty, that.highUpsixty) &&
                Objects.equals(highSum, that.highSum) &&
                Objects.equals(midDownsixty, that.midDownsixty) &&
                Objects.equals(midUpsixty, that.midUpsixty) &&
                Objects.equals(midSum, that.midSum) &&
                Objects.equals(priDomnsixty, that.priDomnsixty) &&
                Objects.equals(priUpsixty, that.priUpsixty) &&
                Objects.equals(sumDownsixty, that.sumDownsixty) &&
                Objects.equals(sumUpsixty, that.sumUpsixty) &&
                Objects.equals(sum, that.sum) &&
                Objects.equals(dzxHigh, that.dzxHigh) &&
                Objects.equals(dzdzxHigh, that.dzdzxHigh) &&
                Objects.equals(dzgcxHigh, that.dzgcxHigh) &&
                Objects.equals(apYjqk, that.apYjqk) &&
                Objects.equals(apJsnlqk, that.apJsnlqk) &&
                Objects.equals(zlglTxqk, that.zlglTxqk) &&
                Objects.equals(password, that.password) &&
                Objects.equals(priSum, that.priSum)&&
                Objects.equals(apLevel,that.apLevel)&&
                Objects.equals(userName, that.userName)&&
                Objects.equals(checkResult, that.checkResult)&&
                Objects.equals(checkObjectId, that.checkObjectId)&&
                Objects.equals(pripId, that.pripId)&&
                Objects.equals(regNo, that.regNo)&&
                Objects.equals(entType, that.entType)&&
                Objects.equals(entTypeCn, that.entTypeCn)&&
                Objects.equals(industryCategory, that.industryCategory)&&
                Objects.equals(organizationClass, that.organizationClass)&&
                Objects.equals(nationalEconomy, that.nationalEconomy)&&
                Objects.equals(dom, that.dom)&&
                Objects.equals(opLoc, that.opLoc)&&
                Objects.equals(opFrom, that.opFrom)&&
                Objects.equals(opTo, that.opTo)&&
                Objects.equals(opScope, that.opScope)&&
                Objects.equals(opScoType, that.opScoType)&&
                Objects.equals(opScoTypeCn, that.opScoTypeCn)&&
                Objects.equals(regOrg, that.regOrg)&&
                Objects.equals(regOrgCn, that.regOrgCn)&&
                Objects.equals(regState, that.regState)&&
                Objects.equals(regStateCn, that.regStateCn)&&
                Objects.equals(apprDate, that.apprDate)&&
                Objects.equals(revDate, that.revDate)&&
                Objects.equals(sugRevReason, that.sugRevReason)&&
                Objects.equals(linkmanCerNo, that.linkmanCerNo)&&
                Objects.equals(operatingLongitude, that.operatingLongitude)&&
                Objects.equals(operatingLatitude, that.operatingLatitude);

    }
    @Override
    public int hashCode() {
        return Objects.hash(id, unitName, uniscid, registAddr, registAddrCode, bgAddrCode, establishTime, linkMan, linkTel, linkEmail, spPerson, spOrg, spResult, spReview, syUnitType, qyUnitType, legalMan, spTime, createTime, createPerson, updateTime, updatePerson, spStatus, delFlag, bgAddr, legalManTel, linkOffice, linkFax, upMainUnit, unitRegistTime, registCode, registMoney, highDownsixty, highUpsixty, highSum, midDownsixty, midUpsixty, midSum, priDomnsixty, priUpsixty, sumDownsixty, sumUpsixty, sum, dzxHigh, dzdzxHigh, dzgcxHigh, apYjqk, apJsnlqk, zlglTxqk, password, priSum,apLevel, userName,checkResult,checkObjectId, pripId,regNo, entType,entTypeCn,industryCategory,organizationClass,nationalEconomy , dom,opLoc ,opFrom, opTo, opScope, opScoType,  opScoTypeCn,  regOrg, regOrgCn,  regState,regStateCn,apprDate, revDate ,sugRevReason , linkmanCerNo ,operatingLongitude ,operatingLatitude);
    }
}
